package app_srv_interface;

import java.util.Collection;
import java.util.UUID;

import utils.Purchase;
import utils.Reservation;
import utils.Sit;
import utils.Theater;

public interface IGlobox {

	public void addPurchase(Purchase p);

//	public void removePurchase(UUID id);

	public void addReservation(Reservation r);

	public void removeReservation(UUID key);
	
	public void updateReservation(UUID key, Reservation r) throws Exception;

	public Collection<Purchase> listPurchases();

	public Collection<Reservation>  listReservations();
	
	public Collection<Theater> listTheaters(String pattern);
	
	public Collection<Sit> browseSitsByTheater(String theaterName, Integer clientID);
	
	public static final String ADD_RESERVATION = "1";

	public static final String REMOVE_RESERVATION = "2";

	public static final String LIST_RESERVATIONS = "0";

	public static final String UPDATE_RESERVATION = "3";

	public static final String LIST_PURCHASES = "4";

	public static final String ADD_PURCHASE = "5";

	public static final String LIST_THEATERS = "6";
	
	public static final String BROWSE_SITS_THEATER = "7";

	public static final String OK = "ok";

	public static final String NOK = "nok";
}
